//
//  HomeHeaderImgCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2018/3/14.
//  Copyright © 2018年 kamangkeji. All rights reserved.
//

#import "HomeHeaderImgCell.h"

@interface HomeHeaderImgCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UIImageView *imgView;


@end

@implementation HomeHeaderImgCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setModel:(HomeCommendModel *)model
{
    _model = model;
    self.nameLab.text = model.levelName;
    [self.imgView sd_setImageWithURL:[NSURL URLWithString:model.advertImage] placeholderImage:GetImage(@"default_goods_image")];
}
- (IBAction)moreClick:(UIButton *)btn
{
    if (self.jumpBlock) {
        self.jumpBlock(self.model.type,self.model);
    }
}

@end
